import{useEffect,useRef}from'react'
function App()  
{
     const ipt=useRef(null)
     
     useEffect(()=>{
       ipt.current.focus()
     },[])


    return(
        <div>
            <input type="text"ref={ipt} />
        </div>
    )
}
export default App;